package com.fzu.mmdbproxyframework.model;

import com.fzu.mmdbproxyframework.cluster.ClusterManager;
import com.fzu.mmdbproxyframework.context.ClusterContext;
import com.fzu.mmdbproxyframework.context.ConfigContext;
import com.fzu.mmdbproxyframework.multitask.MMDBClusterHeartbeatTask;
import com.fzu.mmdbproxyframework.multitask.MMDBFullDumpTask;

public class MMDataNodeCluster {
	private ClusterManager clusterManager =	new ClusterManager(this);
	private ClusterContext clusterContext = new ClusterContext();
	private ConfigContext  configContext = new ConfigContext();
	private MMDBClusterHeartbeatTask HeartbeatTask =new MMDBClusterHeartbeatTask(this);
	private MMDBFullDumpTask FullDumpTask =new MMDBFullDumpTask(this);
	
//	private ScheduledTaskExecutor ClusterHeartbeatTask = new ScheduledTaskExecutor(new MMDBClusterHeartbeatTask(this)); 
	
	public ConfigContext getConfigContext() {
		return configContext;
	}
	public ClusterContext getClusterContext() {
		return clusterContext;
	}
	public ClusterManager getClusterManager() {
		return clusterManager;
	}
	public MMDBClusterHeartbeatTask getHeartbeatTask() {
		return HeartbeatTask;
	}
	public MMDBFullDumpTask getFullDumpTask() {
		return FullDumpTask;
	}
	
}
